.home {
  $f: 19.2;

  .banner {
    position: relative;

    &::before {
      content: '';
      display: block;
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, .2);
    }

    img {
      width: 100%;
      display: block;
      object-fit: cover;
      height: 33vh;
    }

    .text {
      position: absolute;
      left: 0;
      width: 100%;
      bottom: 30/$f+vw;
      color: white;
      padding: 0 200/$f+vw;

      .p1 {
        font-size: 30/$f+vw;
        font-weight: 600;
        line-height: 1;
      }

      .des {
        font-size: 20/$f+vw;
        margin-top: 20/$f+vw;
        line-height: 1.3;
        font-weight: 200;
      }
    }
  }

  .nav_menu {
    background: #F5F5F5;
    padding: 0 200/$f+vw;
    display: flex;
    align-items: center;

    a {
      display: block;
      padding: 20/$f+vw 44/$f+vw;
      color: #222;
      font-size: 17/$f+vw;
      line-height: 1.2;
      transition: all 600ms;
      cursor: pointer;

      &:hover {
        background: #FFF;
        color: #E6001A;
      }
    }

    .on {
      background: #FFF;
      color: #E6001A;
    }

    span {
      width: 1px;
      height: 10/$f+vw;
      background: #CCC;
    }
  }

  .section {
    margin: 60/$f+vw 360/$f+vw 200/$f+vw 360/$f+vw;

    .s_top {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .t {
        color: #000;
        font-size: 32/$f+vw;
      }

      .s_search {
        border-bottom: 3px solid #333;
        display: flex;
        padding: 15/$f+vw;
        align-items: center;

        p {
          color: rgba(51, 51, 51, 1);
          font-size: 15/$f+vw;
          margin: 0 50/$f+vw 0 30/$f+vw ;
        }

        input {
          color: rgba(51, 51, 51, 1);
          font-size: 15/$f+vw;
          width: 220/$f+vw;
          outline: none;
          border: none;
        }

        .btn {
          cursor: pointer;

          svg {
            display: block;
            width: 20/$f+vw;
          }
        }
      }
    }

    .list {
      .item {
        margin-top: 100/$f+vw;
        display: flex;
        gap: 80/$f+vw;
        align-items: center;

        .pic {
          width: 75%;
          overflow: hidden;
          img {
            width: 100%;
            display: block;
            object-fit: cover;
            transition: all 600ms;
          }
          &:hover{
            img{
              transform: scale(1.05);
            }
          }
        }

        .text {
          width: 25%;

          .p1 {
            color: #000;
            font-size: 24/$f+vw;
            margin-bottom: 20/$f+vw;
          }

          .des {
            color: #666;
            font-size: 16/$f+vw;
            font-weight: 500;
            line-height: 1.5;
          }
        }
      }

      .item:nth-child(2n) {
        flex-direction: row-reverse;
      }
    }
  }



  @media screen and (max-width: 1024px) {
    .banner {
      img {
        height: 300px;
      }
    }

    .nav_menu {
      padding: 0;

      a {
        padding: 15px 10px;
        font-size: 14px;
      }

      span {
        height: 10px;
      }
    }

    .section {
      margin: 30px 5% 60px 5%;

      .s_top {
        flex-direction: column;

        .t {
          font-size: 24px;
          margin-bottom: 20px;
        }

        .s_search {
          padding: 15px;
          width: 100%;

          p {
            font-size: 16px;
            margin: 0 20px 0 15px;
          }

          input {
            font-size: 16px;
            width: 70%;
          }

          .btn {
            svg {
              width: 20px;
            }
          }
        }
      }
      .list{
        .item{
          margin-top: 20px;
          flex-direction: column !important;
          .pic{
            width: 100%;
          }
          .text{
            width: 100%;
            .p1{
              font-size: 18px;
              margin-bottom: 10px;
            }
            .des{
              font-size: 16px;
            }
          }
        }
      }
    }
  }
}